package com.lbj.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbj.mall.common.entity.to.HasStockTo;
import com.lbj.mall.common.utils.PageUtils;
import com.lbj.mall.ware.entity.WareSkuEntity;
import com.lbj.mall.ware.entity.vo.WareSkuLockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author libingjun
 * @email 617416791@qq.com
 * @date 2022-03-27 12:13:54
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(List<WareSkuEntity> wareSkuList);

    List<HasStockTo> hasStock(List<Long> skuIds);

    boolean orderLockStock(WareSkuLockVo vo);
}

